package com.springboot.cloud.sysadmin.organization.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.springboot.cloud.common.web.service.BasicsService;
import com.springboot.cloud.sysadmin.organization.entity.param.DictDataQueryParam;
import com.springboot.cloud.sysadmin.organization.entity.param.UserQueryParam;
import com.springboot.cloud.sysadmin.organization.entity.po.DictData;
import com.springboot.cloud.sysadmin.organization.entity.vo.UserVo;

import java.util.List;
import java.util.Map;
import java.util.Set;

/**
 * Created by ZengJian on 2021/2/3 0003 上午 9:22
 */
public interface IDictDataService extends IService<DictData>, BasicsService {

    /**
     * 新增字典数据
     *
     * @param dictData
     * @return true为新增成功
     */
    boolean add(DictData dictData);

    /**
     * 根据id删除字典数据
     *
     * @param ids
     */
//    boolean delete(Set<String> ids);

    /**
     * 获取字典数据
     *
     * @param id
     * @return
     */
    DictData getDictData(String id);

    boolean get(String id);

    List<DictData> getByDictType(String dictType);

    /**
     * 获取所有字典数据
     *
     * @return
     */
//    List<Map<String, Object>> getAll();

    /**
     * 查询字典数据
     *
     * @return
     */
    IPage<DictData> query(Page page, DictDataQueryParam dictDataQueryParam);

    /**
     * 更新字典数据信息
     *
     * @param dictData
     */
    boolean update(DictData dictData);

}
